package com.hmall.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.PageDTO;
import com.hmall.item.pojo.InsertItem;
import com.hmall.item.pojo.Item;
import com.hmall.item.pojo.RequestParams;
import org.springframework.stereotype.Service;

@Service
public interface ItemService extends IService<Item> {

    PageDTO<Item> findAll(RequestParams requestParams);

    Item findById(Long id);

    void insertItem(Item item);

    void changeStatus(Long id, Integer status);

    void updateItem(Item item);

}
